package com.ruoyi.business.rule.domain;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.business.base.JoBaseEntity;
import lombok.Data;

/**
 * 业务规则对象 jb_rules
 *
 * @author ruoyi
 * @date 2024-10-11
 */
@TableName(autoResultMap = true)
@Data
public class JbRules extends JoBaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 规则名称
     */
    @Excel(name = "规则名称")
    private String rulesName;

    /**
     * 规则code
     * dept_highseas=部门公海进入规则
     * company_highseas=公司公海规则进入规则
     * dept_highseas_allocation=部门公海分配规则
     * royalties=提成规则
     */
    @Excel(name = "规则code")
    private String rulesCode;

    /**
     * 规则类型（0自动 1手动）
     */
    @Excel(name = "规则类型", readConverterExp = "0=自动,1=手动")
    private Long executionType;

    /**
     * 规则内容
     */
    @Excel(name = "规则内容")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONObject executionContent;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private Long status;
}
